<div class="right-panel">
      <h3><?php echo __('MESSAGE_BOARD');?></h3>
      <div class="content-outer">
	    
        <div class="top-btns">
            <table width="100%" cellpadding="2" cellspacing="2" border="0">
                <tr>
		<td align="right" width="80%">
		</td>
                <td align="right" width="20%">
                    <div class="actionbtns">
			<?php
			if(!$roleId){//No checks for superadmin
			      echo $this->Html->link( __('ADD_NEW_MESSAGE',true), array('controller'=>'users', 'action'=>'addmsgboard'), array("class"=>"button",'label'=>false));
			}else{
			      if($showMsgBoardAddURL){
				  echo $this->Html->link( __('ADD_NEW_MESSAGE',true), array('controller'=>'users', 'action'=>'addmsgboard'), array("class"=>"button",'label'=>false));
			      }
			}
			
			 ?>
                         <div class="buttonEnding"></div>
                    </div>
                </td>
                </tr>
            </table>
            <?php echo $this->Form->end();?>
        </div>
	
	
          <!-- Div update starts here -->
          <div id="divUpdate">
          <?php echo $this->element('users/msgboardmain');?>
          </div>
          <!-- Div update ends here -->
      </div>
      <!--content-outer End-->
    </div>